package org.niugang.exception;

import org.niugang.constant.ServiceCodeEnum;

/**
 * 
 * 业务异常类
 * 
 * @author niugang
 *
 */
public class ServiceException extends RuntimeException {
	/**
	 * 
	 */
	private static final long serialVersionUID = -73674251465957405L;
	private ServiceCodeEnum exceptionInfo;
	public ServiceException() {
		super();
	}

	public ServiceException(ServiceCodeEnum exceptionInfo) {
		super();
		this.exceptionInfo = exceptionInfo;
	}
	
	public ServiceCodeEnum getExceptionInfo() {
		return exceptionInfo;
	}

	public void setExceptionInfo(ServiceCodeEnum exceptionInfo) {
		this.exceptionInfo = exceptionInfo;
	}

	

}
